<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <title>提币选择</title>
    <link rel="stylesheet" href="../../css/reset.css" />
    <style>
        body {
            width: 100%;
            background-color: #fff;
            font-size: 0.28rem;
            height: auto;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: Helvetica;
            color: #333333;
        }

        .tips {
            color: #929292;
            height: 1.49rem;
            line-height: 1.49rem;
            padding-left: 0.24rem;
            font-size: 0.24rem;
            border-bottom: 0.06rem solid #f6f6f6;
        }

        .coinChoose {
            width: 100%;
            padding-left: 0.24rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        .coinChoose>span {
            display: inline-block;
            width: 100%;
            height: 0.76rem;
            padding-top: 0.2rem;
            line-height: 0.76rem;
        }

        .coinChoose ul>li {
            height: 1.22rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            padding-bottom: 0.1rem;
            border-bottom: 1px solid #e2e2e2;
        }

        .coinChoose ul>li img {
            width: 0.62rem;
            height: 0.62rem;
            margin-right: 0.25rem;
        }

        .coinChoose ul li {
            font-weight: 500;
            color: #333333;
        }
    </style>
</head>

<body>
    <div class="coinChoose">
        <span> 币种选择 </span>
        <ul>
            <li data-name="outcoin" data-type="BTC" data-url="my/outcoin" data-title="提币">
                <img src="../../image/btcicnx.png" alt="" /> <span>BTC</span>
            </li>
            <li data-name="outcoin" data-type="ETH" data-url="my/outcoin" data-title="提币">
                <img src="../../image/ethicnx.png" alt="" /> <span>ETH</span>
            </li>
            <li data-name="outcoin" data-type="LTC" data-url="my/outcoin" data-title="提币">
                <img src="../../image/ltcicnx.png" alt="" /> <span>LTC</span>
            </li>
            <li data-name="outcoin" data-type="BHP" data-url="my/outcoin" data-title="提币">
                <img src="../../image/bhpnewx.png" alt="" /> <span>BHP(交易账户)</span>
            </li>
            <li data-name="outcoin" data-type="BHP_FH" data-url="my/outcoin" data-title="提币">
                <img src="../../image/iconbhpfhx.png" alt="" /> <span>BHP(分红账户)</span>
            </li>
            <li data-name="outcoin" data-type="USDT" data-url="my/outcoin" data-title="提币">
                <img src="../../image/usdticnx.png" alt="">
                <span>USDT</span>
            </li>
            <li data-name="outcoin" data-type="FIL" data-url="my/outcoin" data-title="提币">
                <img src="../../image/filcoinx.png" alt="">
                <span>FIL</span>
            </li>
        </ul>
    </div>
    <script src="../../script/autosize.js"></script>
    <script src="../../script/fastclick.js"></script>
    <script src="../../script/jquery_three_two_one.js"></script>
    <script src="../../script/app.js"></script>
    <script>
        apiready = function () {
            var app = new APP();
            var account = app.getAccount();
            $(".coinChoose li").on("click", function () {
                var getName = $(this).data("name");
                var checkEdit = true;
                if (getName == "entrust") {
                    checkEdit = false;
                }
                var getUrl = $(this).data("url");
                var coinType = $(this).data("type").toLowerCase();
                var dataTitle = $(this).data("title");
                var coinName = $(this).data("type");
                if (coinType == "bhpc" || coinType == "pax" || coinType=="fil") {
                    app.toast("暂不支持该币种");
                    return;
                } else {
                    app.ajaxPro({
                        url: "wallet/withdraw-num",
                        values: {
                            token: account.token,
                            coin_code: coinName == "BHP_FH" ? "BHP" : coinName
                        },
                        openFlower: true
                    }, function (ret) {
                        if (ret.code == 200) {
                            var pageValue = {
                                name: getName,
                                subpage: getUrl,
                                title: dataTitle,
                                slidBackEnabled: false,
                                allowEdit: checkEdit,
                                param: {
                                    pageName: getName,
                                    coinType: coinType,
                                    coinName: coinName,
                                    allowEdit: checkEdit,
                                    limAbout: ret.data
                                }
                            }
                            app.setNavBarAttr(pageValue);
                        } else {
                            app.toast(ret.message);
                        }
                    })
                }
            });
            app.headerMap();
        };

    </script>
</body>

</html>